PROJECT(fim_application)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(FIM_SRC_LIST fim_main.c fim_proxy.c fim.c fim_common.c)

ADD_DEFINITIONS(-D__USE_GNU)

ADD_EXECUTABLE(fim ${FIM_SRC_LIST})
TARGET_LINK_LIBRARIES(fim pthread)

ADD_EXECUTABLE(fim_test fim_test.c)
TARGET_LINK_LIBRARIES(fim_test pthread)

INSTALL(PROGRAMS fim_config
    DESTINATION bin
)
